<!DOCTYPE html>
<html>
<head>
<title>报表汇总</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport"
			content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta name="format-detection" content="telephone=no" />
		<meta name="format-detection" content="email=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<!--删除默认的苹果工具栏和菜单栏。-->
		<link rel="stylesheet" href="plug-in/ydui/css/ydui.css?rev=@@hash"/>
		<link rel="stylesheet" href="plug-in/ydui/css/demo.css"/>
		<script src="plug-in/ydui/js/ydui.flexible.js"></script>
		<style type="text/css">
			.demo-pagetitle{
				position:relative;
				top:10%;
			}
	    	.m-grids-4{
	    		top:20%;
	    		background:transparent;
	    	}
	    	
			.m-grids-4 .grids-item {
				width: 50%;
			}
			.demo-icons [class^="icon-"]:before, .demo-icons [class*=" icon-"]:before { font-size: 0.6rem; color: #FF685D; }
    	</style>
		<link rel="stylesheet" href="webpage/css/login-main.css" />
		<script type="text/javascript" src="webpage/jQuery/jquery-1.9.1.js"></script>
		<script type="text/javascript">
		</script>
</head>
<body>
	<section class="g-flexview">
		<header class="m-navbar">
        	<a class="navbar-item" href="javascript:history.go(-1)"><i class="back-ico"></i></a>
        	<div class="navbar-center"><span class="navbar-title">个人工单查询</span></div>
    	</header>
	    <section class="g-scrollview">
        <article id="article" class="m-list list-theme4">
        	<ul class="m-grids-2">
	            <li class="grids-item">
	                <div class="grids-txt">员工名称</div>
	            </li>
	            <li class="grids-item">
	                <div class="grids-txt">处理故障单数</div>
	            </li>
        	</ul>
        </article>
	</section>
    </section>
</body>
<script type="text/javascript">
	$(function(){
		var name , value;
		var str=location.href; //取得整个地址栏
		var num=str.indexOf("?")
		str=str.substr(num+1); //取得所有参数   stringvar.substr(start [, length ]
		var arr=str.split("&"); //各个参数放到数组里
		for(var i=0;i < arr.length;i++){
			num=arr[i].indexOf("=");
		    if(num>0){
				name=arr[i].substring(0,num);
		        value=arr[i].substr(num+1);
		        this[name]=value;
		    }
		}
		$.ajax({
			type: 'post', // 提交方式 get/post
	   		url: "statementController.do?pdatagrid", // 需要提交的 url
	  		data:{'id':value},
	   		dataType:"json",
	       	success: function(json){
	       		if(json.success){
	       			var entity = json.obj;
		       		$.each(entity, function(i,item){
		       			var html =  "<ul class='m-grids-2'><li class='grids-item'> "+
									"<div class='grids-txt'> "+ 
									i +
									"</div></li> " +
									"<li class='grids-item'> "+
									"<div class='grids-txt'> "+ 
									item +
									"</div></li></ul> " ;
						$("#article").append(html);
		       		})
	       		}else{
	       			var html =  "<ul class='m-grids-2'><li class='grids-item'> "+
					"<div class='grids-txt'> "+ 
					"无数据" +
					"</div></li> " +
					"<li class='grids-item'> "+
					"<div class='grids-txt'> "+ 
					"无数据" +
					"</div></li></ul> " ;
					$("#article").append(html);
	       		}
				return false;
	       		//$("#dicStatus").attr("value",json.obj.dicStatus);
	       	},
	       	error : function(){}
		})
	})
</script>
</html>